package com.gton.usermanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author GuoTong
 * @since 2022-10-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("gateway_rutor")
@ApiModel(value = "GatewayRutor对象", description = "")
public class GatewayRutor implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("路由规则ID")
    @TableField("routes_id")
    private String routesId;

    @ApiModelProperty("目标服务地址hhtp或者基于注册中心负载")
    @TableField("routes_uri")
    private String routesUri;

    @ApiModelProperty("路由转发匹配的规则详细定义")
    @TableField("routes_pattern")
    private String routesPattern;

    @ApiModelProperty("路由优先级")
    @TableField("routes_order")
    private String routesOrder;

    @ApiModelProperty("路由规则所属定义谓词（Path、Cookie、Method、QueryParam、RemoteAddr、Host、Header、DateTime）")
    @TableField("routes_predicate_name")
    private String routesPredicateName;

    @ApiModelProperty("过滤规则")
    @TableField("routes_filter")
    private String routesFilter;

    @ApiModelProperty("过滤器规则所属定义谓词")
    @TableField("routes_filter_name")
    private String routesFilterName;


}
